package com.lenovo.lcdm.dcm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName integration_itsm_auth_request
 */
@TableName(value ="integration_itsm_auth_request")
@Data
public class ItsmAuthRequest implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String worderId;

    /**
     * 
     */
    private String requestorId;

    /**
     * 
     */
    private String requestReason;

    /**
     * 
     */
    private String requestedDate;

    /**
     * 
     */
    private String userId;

    /**
     * 
     */
    private String state;

    /**
     * 
     */
    private Object jsonData;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ItsmAuthRequest other = (ItsmAuthRequest) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWorderId() == null ? other.getWorderId() == null : this.getWorderId().equals(other.getWorderId()))
            && (this.getRequestorId() == null ? other.getRequestorId() == null : this.getRequestorId().equals(other.getRequestorId()))
            && (this.getRequestReason() == null ? other.getRequestReason() == null : this.getRequestReason().equals(other.getRequestReason()))
            && (this.getRequestedDate() == null ? other.getRequestedDate() == null : this.getRequestedDate().equals(other.getRequestedDate()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getJsonData() == null ? other.getJsonData() == null : this.getJsonData().equals(other.getJsonData()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWorderId() == null) ? 0 : getWorderId().hashCode());
        result = prime * result + ((getRequestorId() == null) ? 0 : getRequestorId().hashCode());
        result = prime * result + ((getRequestReason() == null) ? 0 : getRequestReason().hashCode());
        result = prime * result + ((getRequestedDate() == null) ? 0 : getRequestedDate().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getJsonData() == null) ? 0 : getJsonData().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", worderId=").append(worderId);
        sb.append(", requestorId=").append(requestorId);
        sb.append(", requestReason=").append(requestReason);
        sb.append(", requestedDate=").append(requestedDate);
        sb.append(", userId=").append(userId);
        sb.append(", state=").append(state);
        sb.append(", jsonData=").append(jsonData);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}